package net.maku.kyy.convert;

import net.maku.kyy.entity.KyyUserPostEntity;
import net.maku.kyy.vo.KyyUserPostVO;
import net.maku.kyy.vo.KyyUserPostExcelVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户岗位关系
 *
 * @author MAKU babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */
@Mapper
public interface KyyUserPostConvert {
    KyyUserPostConvert INSTANCE = Mappers.getMapper(KyyUserPostConvert.class);

    KyyUserPostEntity convert(KyyUserPostVO vo);

    KyyUserPostVO convert(KyyUserPostEntity entity);

    List<KyyUserPostVO> convertList(List<KyyUserPostEntity> list);

    List<KyyUserPostEntity> convertList2(List<KyyUserPostVO> list);

    List<KyyUserPostExcelVO> convertExcelList(List<KyyUserPostEntity> list);

    List<KyyUserPostEntity> convertExcelList2(List<KyyUserPostExcelVO> list);
}